home *** CD-ROM | disk | FTP | other *** search
- -> an example of using the E module player, rather than the library,
- -> and using the 'noteplay' interface.
-
- -> Press RMB to hear the special sound while the music plays.
- -> You can also press LMB to hear it on the other speaker, but note
- -> that it will probably be distorted.
- -> Press both mouse buttons, or press CTRL-C to exit.
-
- MODULE 'tools/thx-play'
-
- PROC main()
- IF thxInit({module}) THEN RETURN
- thxPlay()
- REPEAT
- WaitTOF(); WaitTOF(); WaitTOF(); WaitTOF()
- IF Mouse()=1 THEN thxPlayNote(3, 1, 15) -> left channel (3)
- IF Mouse()=2 THEN thxPlayNote(1, 1, 15) -> right channel (1)
- UNTIL CtrlC() OR (Mouse()=3)
- thxSetSong(1); thxPlay(); REPEAT; UNTIL thxPlaytime() >= 2
- thxFree()
- ENDPROC
-
- module: INCBIN 'MODS:thx/THXmuzza/Pink/THX.Strange'
- -> THX.Strange is from 'Klub Diznee'
-
- -> instrument 15 is the 'special' instrument, channel 3 is kept empty
- -> in the song, but channel 1 completely unusable, and I really just
- -> wanted to show that you can use more than one channel at once
-